list1 = [88, 87, 89, 95, 00, 96]
print(list1)

# 第一种遍历方法
# for index in range(len(list1)):
#     if str(list1[index]) != '0':
#         list1[index] = '19' + str(list1[index])
#     else:
#         list1[index] = '200' + str(list1[index])
#
# print(list1)

# 第二种遍历方法
for index, value in enumerate(list1):
    # print(index, value)
    if str(value) != '0':
        list1[index] = '19' + str(value)
    else:
        list1[index] = '200' + str(value)
print(list1)
